<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 通过src引入外部js文件 -->
   <script src="./js/my.js">
        // 中间不要写内容
   </script> 
</body>
</html>